package com.tools.compass;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.widget.RemoteViews;

public class CompassWidget extends AppWidgetProvider {

	@Override
	public void onUpdate(Context context, AppWidgetManager appWidgetManager,
			int[] appWidgetIds) {
		AppWidgetManager manager = AppWidgetManager.getInstance(context);
		manager.updateAppWidget(new ComponentName(context.getPackageName(),
				CompassWidget.class.getName()),
				new RemoteViews(context.getPackageName(),
						R.layout.compass_widget));
		super.onUpdate(context, appWidgetManager, appWidgetIds);
	}

}
